
let obj1 = { name: '张三', age: 18, adddress: { province: 'HLJ', city: 'HRB' } }

//定义了第一个数组
let users = [

    { name: '张三', age: 18, adddress: { province: 'HLJ', city: 'HRB1' } },
    { name: '李四', age: 28, adddress: { province: 'LN', city: 'HRB2' } },
    { name: '王五', age: 38, adddress: { province: 'ZJ', city: 'HRB3' } },
    { name: '赵六', age: 48, adddress: { province: 'SC', city: 'HRB4' } },
]


//定义第二个数组
let  user2 = [    ... users] 

users[1].name = "赵云"

console.log("users[1].name ",users[1].name);
console.log("users[1].age ",users[1].age);
console.log("users[1].adddress.province ",users[1].adddress.province);
console.log("users[1].adddress.city ",users[1].adddress.city);


console.log("user2[1].name ",user2[1].name);
console.log("user2[1].age ",user2[1].age);
console.log("user2[1].adddress.province ",user2[1].adddress.province);
console.log("user2[1].adddress.city ",user2[1].adddress.city);




